﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using wfa1.UI;

namespace wfa1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void toolStripStatusLabel1_Click(object sender, EventArgs e)
        {

        }

        private void Form1_Load(object sender, EventArgs e)
        {
            this.toolStripStatusLabel1.Text = DateTime.Now.ToString();
            this.toolStripStatusLabel2.Text = "Welcome";
            this.timer1.Interval = 1000;
            this.timer1.Start();
            保稳定ToolStripMenuItem_Click(sender, e);
        }
        frmClassic frmC = null;
        private void 保稳定ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (frmC == null)
            {
                frmC = new frmClassic();
                frmC.MdiParent = this;
                frmC.WindowState = FormWindowState.Maximized;
                frmC.Show();
                this.toolStripStatusLabel2.Text = "保稳定";
            }
            else {
                frmC.Activate();
            }
        }

        private void 退出ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }

        private void statusStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {

        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            this.toolStripStatusLabel1.Text = DateTime.Now.ToString();
        }
    }
}
